/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.alanis.dao;

import cl.alanis.dto.VentaDto;
import java.sql.SQLException;

/**
 *
 * @author Pía
 */
public interface VentaDao {

    public boolean insertarVenta(VentaDto venta) throws SQLException,Exception;
    public Integer generaCodigo() throws SQLException,Exception;
    public VentaDto obtenerVenta(VentaDto venta) throws Exception;

    public void commit();

    public void actualizarVenta(VentaDto venta) throws Exception;

    public void rollback();
    
}
